package com.zsw.rpc;

import com.zsw.vo.StorageVO;
import feign.FeignException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhangsw
 */
@FeignClient(name = "storage-service")
public interface StorageFeignClient {

    /**
     * 远程调用
     * @param storageVO
     * @return
     * @throws FeignException
     */
    @PostMapping(value = "/storage/deduct")
    boolean deductStorage(@RequestBody StorageVO storageVO) throws FeignException;
}
